import request from '@/utils/request';
import { LoginResponse, LoginReq } from './types';

export const loginApi = (data: LoginReq) => {
  return request.post<LoginResponse>({ url: '/api/v1/user/login', data });
};

export const registerApi = (data: LoginReq) => {
  return request.post<LoginResponse>({ url: '/api/v1/user/register', data });
};
